#include <linux/init.h>
#include <linux/module.h>
#include <linux/kobject.h>
#include <linux/fs.h>
MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(void)
{
  struct kobj_type * ktype;
  struct kobject * kobj;
  ktype=kmalloc(sizeof(struct kobj_type),GFP_KERNEL);
  memset(ktype,0,sizeof(struct kobj_type));
  kobj=kmalloc(sizeof(struct kobject),GFP_KERNEL);
  memset(kobj,0,sizeof(struct kobject));
  
  kobject_init(kobj,ktype);
  kobject_add(kobj,0,"deanxx");
  
  printk(KERN_ALERT"hello,world\n");
  
  return 0;
}
static void hello_exit(void)
{
   printk(KERN_ALERT"Goodbye,world");
}

module_init(hello_init);
module_exit(hello_exit);
